/**
 * Copyright (c) 2021 Choice, Inc.
 * All Rights Reserved.
 * Choice Proprietary and Confidential.
 */
package cn.ruleengine.web.vo.generalrule;

import java.util.HashMap;
import java.util.Map;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import lombok.Data;

/**
 * 请求
 *
 * @author <a href="mailto:danliang@myweimai.com">丹良</a>
 * @date 2021/7/27
 */
@Data
public class CheckRequest {
    /**
     * 检查检验编码
     */
    @NotEmpty
    private String code;

    /**
     * 年龄
     */
    @NotNull
    private Integer age;

    /**
     * 性别
     */
    @Max(1) // 男
    @Min(0) // 女
    @NotNull
    private Integer gender;

    /**
     * 报告时间
     * "2021-07-13 00:00:00"
     */
    @NotEmpty
    private String reportTime;

    private Map<String, Object> param = new HashMap<>();
}
